package it.valeandre.omino;

import it.valeandre.omino.fragment.UpgradableBaseFragment;
import it.valeandre.omino.model.Item;
import it.valeandre.omino.model.Matches;
import it.valeandre.omino.model.RSS;
import it.valeandre.omino.model.Ranking;
import it.valeandre.omino.model.Results;
import it.valeandre.omino.model.Setting;
import it.valeandre.omino.model.TeamsList;
import it.valeandre.omino.utils.MultiDirectionSlidingDrawer;

import java.util.Observer;

import android.content.DialogInterface;
import android.widget.ImageButton;


public interface InterFragmentInterface {
	
	public void register();
	public void expandActionBar();
	public void hideActionBar();
	public void showProgress();
	public void hideProgress();
	public void loadTeams(boolean manageStartup, Observer observer);
	public void loadResults(boolean manageStartup,Observer observer);
	public void loadTmpMatches(boolean manageStartup,Observer observer);
//	public void loadTestTmpResults(boolean manageStartup,Observer observer);
	public void loadRanking(boolean manageStartup, Observer observer);
	public void loadSettings(boolean manageStartup, Observer observer);
	public String getSettingTeamsString();
	public void setSettingPushFlag(boolean flag);
	public boolean getSettingPushFlag();
	public void setTeams(TeamsList mTeams);
	public void switchToFeedsFragment(String url);
	public void switchToFeedDetailFragment(Item feed);
	public Ranking getRanking();
	public Results getResults();
	public Matches getMatches();
	public Matches getTmpResults();
	public TeamsList getTeams();
	public void updateTeamFeeds(String url, RSS feeds);
	public RSS getTeamFeeds(String url);
	public void showDialog(String message);
	public void showDialog(String message, DialogInterface.OnClickListener positiveListener);
	public MultiDirectionSlidingDrawer getSlider();
	public void performBack();
	public boolean isGCMRegistrationError();
	public ImageButton getRefreshImageButton();
	public void setCurrentFragment(UpgradableBaseFragment fragment);
	public Setting getSettings();
	
}
